package com.vf.admin.platform.dao;

import com.vf.admin.common.db.BaseDao;
import com.vf.admin.common.splitpage.SplitPageBean;
import com.vf.admin.platform.entity.AppCommodity;
import org.springframework.stereotype.Repository;

import java.util.ArrayList;
import java.util.List;

@Repository
public class AppTextDao extends BaseDao<AppCommodity>{

    public List<AppCommodity> findList(SplitPageBean splitPage){
        List<Object> objectList = new ArrayList<>();

        StringBuilder stringBuilder = new StringBuilder("");
        stringBuilder.append("select * from app_commodity where 1=1");
        String sql = stringBuilder.toString();

       return this.queryList(sql,objectList,AppCommodity.class,splitPage);
    }

}
